package com.kalix.mooc.reply.entities;

import com.kalix.framework.core.api.persistence.PersistentEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 功能描述:
 *
 * @Description: 留言回复实体类
 * @Author: yyp
 * @CreateDate: 2019/5/29$ 10:12$
 * @Version:
 */
@Entity
@Table(name = "mooc_messageReply")
public class MessageReplyBean extends PersistentEntity {
    private Long messageId; // 留言id
    @Column(name = "replyMessage", columnDefinition = "text")
    private String replyMessage; //回复内容
    private Long userId; // 回复用户ID
    private String userName; // 回复用户姓名
    private Long parentId; //父ID
    private Long isLeaf;    //是否是子节点

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    public String getReplyMessage() {
        return replyMessage;
    }

    public void setReplyMessage(String replyMessage) {
        this.replyMessage = replyMessage;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(Long isLeaf) {
        this.isLeaf = isLeaf;
    }
}
